<?php
    header('content-type:text/html;charset= utf-8');
    mysql_connect('127.0.0.1','root','root');
    mysql_select_db('logistics');
    $id = $_GET['id'];
    $sql = "select * from ruku where r_id = $id";
    $res = mysql_query($sql);
    // $arr = array();
    $row = mysql_fetch_assoc($res);
    // while(){
    //     array_push($arr,$row);
    // }
    print_r(json_encode($row));
?>